package com.rc.pojo.dto.plant;

import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class PlantAddDTO {
    @NotNull
    @ApiModelProperty(value = "植物名称",required = true)
    private String name;

    @NotNull
    @Range(max = 2)
    @ApiModelProperty(value = "植物大类0水果 1蔬菜 2主粮",required = true)
    private Integer type;

    private List<ImageModel> imgs;

    @ApiModelProperty(value = "植物描述")
    private String description;
}
